package cn.itcast.feign.clients;


import cn.itcast.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zongshuaidong
 * @version 1.0.0
 * @ClassName UserClient.java
 * @Description TODO
 * @createTime 2024年10月28日 21:24:00
 */
@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/{id}")
    User queryUserById(@PathVariable("id") Long id);
}
